.PHONY: all front_end back_end run clean
all:
	cd front_end && make
	cd back_end && make
	cp front_end/main main && cp back_end/zm_main zm_main

front_end:
	cd front_end && make

back_end:
	make -C back_end

run: all
	./main test_proc.c
	./zm_main

clean:
	cd front_end && make clean
	cd back_end && make clean
	rm -rf *.err *.tmp main zm_main
